import './index.less';

class Element {
  state = {
    tagName: 'div',
    tagContent: 'hello world',
  };

  render() {
    const div = document.createElement(this.state.tagName);
    div.innerText = this.state.tagContent;
    return div;
  }
}

const div = new Element().render();
document.getElementById('root').appendChild(div);

